package com.sfjswl.fp.core.context;

import lombok.Data;

import java.io.Serializable;

@Data
public final class RuleContext {

  private final long ruleTime = System.currentTimeMillis();

  private long ruleId;

  private RulePack pack;

  private StringBuilder processInfo = new StringBuilder();

  public RuleContext(long ruleId, RulePack pack) {
    this.ruleId = ruleId;
    this.pack = pack == null ? new RulePack() : pack;
  }
}